@layout("/common/_container.html",{bg:"bg-white",js:["/assets/modular/system/project/form.js"]}){
<form id="projectForm" lay-filter="projectForm" class="layui-form model-form">
    <input name="id" type="hidden" value="${project.id}"/>
    <div class="layui-form-item">
        <label class="layui-form-label">项目编号<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input name="projectCode" placeholder="请输入项目编号" type="text" class="layui-input" maxlength="20"
                   @if(isNotEmpty(project.id)){
                   readonly="readonly"
                   @}
                   lay-verify="required"
            value="${project.projectCode}" required/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">项目名称<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input name="projectName" placeholder="请输入项目名称" type="text" class="layui-input" maxlength="32" lay-verify="required"
                   value="${project.projectName}"
                   required/>
        </div>
    </div>

<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">项目展示图</label>-->
<!--        <div class="layui-input-block">-->
<!--            <input name="projectImg"  value="${project.projectImg}" type="text" class="layui-input"/>-->
<!--          &lt;!&ndash;   <button type="button" class="layui-btn" id="uploadProjectImg">-->
<!--                 <i class="layui-icon">&#xe67c;</i>上传图片-->
<!--            </button> &ndash;&gt;-->
<!--        </div>-->

<!--    </div>-->

    <div class="layui-form-item">
        <label class="layui-form-label">访问域名&nbsp;<i lay-tips="多个项目入口时，将与项目的菜单URL拼接成最终能访问的web http地址" lay-direction="1" class="layui-icon layui-icon-tips"></i>&nbsp;<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input name="projectDomain" placeholder="如 http://localhost:8080" type="text" class="layui-input" value="${project.projectDomain}"  lay-verify="required" required
            />
        </div>
    </div>


   <div class="layui-form-item layui-form-text">
    <label class="layui-form-label">项目说明</label>
    <div class="layui-input-block">
      <textarea name="projectDesc" placeholder="请输入内容" class="layui-textarea">${project.projectDesc}</textarea>
    </div>
  </div>


    
    <div class="layui-form-item text-right">
        <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button>
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>保存</button>
    </div>
</form>
@}
